<?php

require_once dirname(__FILE__).'/../lib/vendor/symfony/autoload/sfCoreAutoload.class.php';
//die(realpath(dirname(__FILE__).'/../lib/vendor/symfony/autoload/sfCoreAutoload.class.php'));

sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
    public function setup()
    {

        $this->enableAllPluginsExcept(array());
        $this->enablePlugins('sfFormExtraPlugin');
        require_once sfConfig::get('sf_symfony_lib_dir').'/plugins/sfPropelPlugin/lib/addon/sfPropelBehavior.class.php';



        sfPropelBehavior::registerHooks('branch_behaviour', array(
        ':save:pre'                 => array('sfPropelBranchBehavior', 'preSave'),
        'Peer:doCount'               => array('sfPropelBranchBehavior', 'doSelectStmt'),
        'Peer:doSelectStmt'          => array('sfPropelBranchBehavior', 'doSelectStmt'),
        'Peer:doSelectJoin'          => array('sfPropelBranchBehavior', 'doSelectStmt'),
        'Peer:doSelectJoinAll'       => array('sfPropelBranchBehavior', 'doSelectStmt'),
        'Peer:doSelectJoinAllExcept' => array('sfPropelBranchBehavior', 'doSelectStmt'),
        ));



    }
}
